#ifndef CANNON_H
#define CANNON_H
#include "Projectile.h"
#include <GL/glut.h>

class Cannon{
public:
	Cannon(float angle, float x, float z);
	~Cannon(){}

	void DrawCannon(GLuint &texture_obj);
	void Shoot();

	float GetRotation();
	float GetAngle();
	float GetX();
	float GetZ();

	int Get_shootTimer();
	int Get_cannonTimer();
	bool Get_shot();

	void Set_cannonAngle(float Angle);
	void SetX(float X);
	void SetZ(float Z);

	void Set_shootTimer(int i);
	void Set_cannonTimer(int i);
	void Set_shot(bool i);

	float GetProjPositionX();
	float GetProjPositionZ();

	void ResetProjPosition();

private:
	float rotation;
	float xTranslation;
	float zTranslation;

	float cannonAngle;
	float cannonSize;

	short int shootTimer;
	short int cannonTimer;

	bool shot;

	float player_posX;
	float player_posZ;

	Projectile b;
	GLUquadric *myQuad;
};

#endif